package cn.edu.zsc.rbac.domain.vo;

public class Result {public boolean success;
    //响应消息
    public String message;
    //响应数据
    public Object data;

    public static Result failure(String message) {
        Result result = new Result();
        result.message = message;
        return result;
    }

    public static Result success(String message,Object data) {
        Result result = new Result();
        result.message = message;
        result.data = data;
        result.success = true;
        return result;
    }

}
